package com.iran.mediator;

public class MainTest {
    public static void main(String[] args) {
        ConcreteMediator concreteMediator = new ConcreteMediator();

        ConcreteColleague1 c1 = new ConcreteColleague1(concreteMediator);
        ConcreteColleague2 c2 = new ConcreteColleague2(concreteMediator);

        concreteMediator.setConcreteColleague1(c1);
        concreteMediator.setConcreteColleague2(c2);

        c1.send("你吃饭了么？");
        c2.send("没有呢，你呢？");

    }
}
